﻿package mortal.game.view.platform.platformTencent
{
    import mortal.game.mvc.*;
    import mortal.game.resource.*;
    import mortal.game.view.common.*;

    public class PlatformQQBlueXufeiIcon extends ActionBaseIcon
    {
        private static var _instance:PlatformQQBlueXufeiIcon;

        public function PlatformQQBlueXufeiIcon(param1:String)
        {
            super(param1);
            return;
        }// end function

        public function set textNumber(param1:int) : void
        {
            if (param1 == 0)
            {
                setIconTxt("");
            }
            else
            {
                setIconTxt(param1.toString());
            }
            return;
        }// end function

        override protected function createDisposedChildrenImpl() : void
        {
            super.createDisposedChildrenImpl();
            disEventName = EventName.PlatformQQBlueXufeiShow;
            this.name = "PlatformTencentIcon";
            return;
        }// end function

        override public function playEffect(param1:String = "ActionIconEffect.swf") : void
        {
            super.playEffect(param1);
            return;
        }// end function

        override public function get width() : Number
        {
            return 56;
        }// end function

        override public function get height() : Number
        {
            return 54;
        }// end function

        public static function get instance() : PlatformQQBlueXufeiIcon
        {
            if (!_instance)
            {
                _instance = new PlatformQQBlueXufeiIcon(ResFileConst.QQBlueVipXufeiIcon);
            }
            return _instance;
        }// end function

        public static function hasInstance() : Boolean
        {
            return _instance != null;
        }// end function

        public static function isViewShow() : Boolean
        {
            return hasInstance() && !instance.isHide;
        }// end function

    }
}
